<div class="page table-section" data-page="insuranceDetail" id="insuranceDetail">
	<p class="location">
		当前位置:
		<label class="locationInfo">保险管理>保险添加</label><div class="topButton"></div>
	</p>
	<div class="createInsurance">
		<div id="insuranceDetailBody"></div>
		<script type="text/template" id="insuranceDetailTpl">
			{@each datas as it}
			<div class="dataTitle">保险基本信息：</div>
			<div class="dataline">
				<input type="hidden" name="financeId" value="${it.financeId}" />
				<input id="insuranceState" type="hidden" value="${it.insuranceState}" />
				<div>投保单号：
					<input isNULL="1" codeName="投保单号" type="text" value="${it.insuranceNumber}" name="insuranceNumber" />
				</div>
				<div>投保时间：
					<input value="${it.insuranceDate}" isNULL="1" codeName="投保时间" readonly="readonly" onclick="WdatePicker({})" type="text" name="insuranceDate" />
				</div>
				<div>
					保险公司：
					<input value="${it.insuranceCompany}" isNULL="1" codeName="保险公司" type="text" name="insuranceCompany" />
				</div>
			</div>
			<div class="dataline">
				<div>投保类型：
					<select class="mold" disabled="disabled" name="mold">
						<option value="1">内部平台</option>
						<option value="2">供应商</option>
						<option value="3">客户</option>
					</select>
				</div>
				<div>投保人单位：
					<input value="${it.applicantDepartment}" isNULL="1" codeName="投保人单位" type="text" name="applicantDepartment" />
				</div>
				<div>投保人：
					<input value="${it.applicant}" isNULL="1" codeName="投保人" type="text" name="applicant" />
				</div>
			</div>
			<div class="dataline">
				<div>购买类型：
					<select class="purchase" disabled="disabled" name="purchase">
						<option value="1">委托购买</option>
						<option value="2">平台自有</option>
					</select>
				</div>
				<div>投保人地址：
					<input value="${it.applicantAddress}" isNULL="1" codeName="投保人地址" type="text" name="applicantAddress" />
				</div>
				<div>平台编号：
					<input value="" isNULL="1" codeName="平台编号" type="text" name="" />
				</div>
			</div>
			<div class="dataline" style="position: relative;">
				<div>起运地：
					<input type="text" readonly="readonly" name="" value="${it.deliverProvince}${it.deliverCity}${it.deliverDistrict}${it.deliverAddress}" />
				</div>
				<div>目的地：
					<input type="text" readonly="readonly" name="" value="${it.receiveProvince}${it.receiveCity}${it.receiveDistrict}${it.receiveAddress}" />
				</div>
				<div>融资编号：
					<input type="text" readonly="readonly" name="" value="${it.financeNumber}" /><a style="display: inline-block; position: absolute; top: 6px;" href="javascript:void(0);" class="applicationDetail" financeId="${it.financeId}">查看</a>
				</div>
			</div>
			<div class="dataline">
				<div>
					状态：
					<select class="insuranceState" disabled="disabled" name="insuranceState">
						<option value="1">待审批</option>
						<option value="2">已生效</option>
						<option value="3">已撤销</option>
					</select>
				</div>
				<div>总保费：<input type="text" class="premiums" /></div>
				<div></div>
			</div>
			<div class="dataline" style="margin-left: 7px;" >
					保险副本信息：
				<input value="${it.insuranceFileUuid}" isNull="1" codeName="保险副本信息" id="insuranceFileUuidDetail" type="hidden" name="insuranceFileUuid">
				<span class="fs"></span>
			</div>
			<div class="dataline" style="margin-left: 55px;">
				审批人：<span class="data" name="auditDate"></span>
			</div>
			<div class="dataline" style="margin-left: 42px;">
				审批时间：<span class="data" name="auditDate"></span>
			</div>
			<div class="dataline" style="text-align: right; margin-right: 170px;">
				审核意见：
				<textarea  codeName="审核意见" name="overRemark">${it.overRemark}</textarea>
			</div>
			<div class="dataline" style="text-align: right; margin-right: 170px;">
				投保说明：
				<textarea isNull="1" codeName="投保说明" name="insureRemark">${it.insureRemark}</textarea>
			</div>
			<div class="insuranceCoveragesTableContainer">
				<div style="margin-left: 20px; margin-right: 20px; margin-bottom: 20px;">
					<table class="insuranceCoveragesBody">
						<tr>
							<th>险种</th>
							<th>保额</th>
							<th>保费</th>
							<th>货物</th>
							<th>箱号</th>
							<th>操作</th>
						</tr>
						{@each it.insuranceCoverages as item}
						<tr insuranceCoverageId=${item.insuranceCoverageId}>
							<td>${item.coverageName}</td>
							<td>&#65509;${item.insuranceAmount}</td>
							<td>&#65509;<span class="premium">${item.premium}</span></td>
							<td>
								{@each item.bulkstockNames as that,index}
								{@if index < 3}
								 ${that}<br /> 
								{@/if}
								{@/each}
							</td>
							<td>
								{@each item.caseNumbers as that,index} 
								{@if index < 3}
								${that}
								<br /> 
								{@/if}
								{@/each}
							</td>
							<td><a class="insuranceCoverageDetail">详情</a></td>
						</tr>
						{@/each}
					</table>
				</div>
			</div>
			{@/each}
		</script>
	</div>
</div>